package com.zhang.sh.service;

import com.google.common.collect.Ordering;
import com.zhang.sh.mapper.OrderMapper;
import com.zhang.sh.pojo.Order;
import com.zhang.sh.pojo.UserOrderVo;
import com.zhang.sh.pojo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    OrderMapper orderMapper;

    public List<Order> getOrder(String username){
        List<Order> orders = orderMapper.getOrders(username);
        return orders;
    }
}
